package pe.com.bbva.ge.persistencia.orm.test;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import pe.com.bbva.ge.domain.base.Auditoria;

@Entity
@Table(name = "DETALLE")
public class Detalle extends Auditoria {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8598152801170383201L;

	@Id
	@Column
	private long id;
	
	@Column
	private String concepto;
	
	@ManyToOne
	@JoinColumn(name="CABECERA")
	private Cabecera cabecera;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getConcepto() {
		return concepto;
	}

	public void setConcepto(String concepto) {
		this.concepto = concepto;
	}

	public Cabecera getCabecera() {
		return cabecera;
	}

	public void setCabecera(Cabecera cabecera) {
		this.cabecera = cabecera;
	}
	
}
